//
//  DDQuestionAnswerOptionElementView.m
//  dingdang
//
//  Created by Chen Jing on 15-7-8.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#import "DDQuestionAnswerOptionElementView.h"



@implementation DDQuestionAnswerOptionElementView

- (IBAction)btnClickChooseImage:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(element_ClickImage:)]) {
        [self.delegate performSelector:@selector(element_ClickImage:) withObject:self];
    }
}

- (IBAction)btnClickMinus:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(element_Minus:)]) {
        [self.delegate performSelector:@selector(element_Minus:) withObject:self];
    }
}

- (IBAction)btnClickPlus:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(element_Plus:)]) {
        [self.delegate performSelector:@selector(element_Plus:) withObject:self];
    }
}

- (IBAction)btnClickEditAnswer:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(element_EditAnswer:)]) {
        [self.delegate performSelector:@selector(element_EditAnswer:) withObject:self];
    }
}
- (IBAction)deleteImage:(id)sender {
    UILongPressGestureRecognizer * press = (UILongPressGestureRecognizer *)sender;
    [press removeTarget:self action:@selector(deleteImage:)];
    if (self.delegate && [self.delegate respondsToSelector:@selector(element_deleteImage:)]) {
        [self.delegate performSelector:@selector(element_deleteImage:) withObject:self];
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
